﻿using MaiPlanServer.Dto;
using MaiPlanServer.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MaiPlanServer.IServices.IEquipmentServices
{
    public interface IDeviceTypeServices
    {
        public Task<IEnumerable<dv_machinery_typeDto>> GetJsonAsync(int PageIndex, int PageSize, string mtName, string enable_flag);
        public Task<int> GetCountAsync(string mtName);
        public Task<bool> AddAsync(dv_machinery_type model);
        public Task<bool> UpdateAsync(dv_machinery_type model);
        public Task<bool> DellAsync(string Id);
        public Task<bool> DellAllAsync(string[] Id);
        public Task<string> GetCodeasync(string mtName);

    }
}
